-- GENERATED SPELL FOR [Devout Bodyguard] --


function spell0_27247(pUnit, Event) --@Piercing Howl,Self--
pUnit:FullCastSpellOnTarget(38256,pUnit)
pUnit:RegisterEvent('Sorts_27247', 6289, 1)
end

function Sorts_27247(pUnit, Event)
local choix_sorts_27247 = math.random(0, 0)
if choix_sorts_27247 == 0 then
pUnit:RegisterEvent('spell0_27247', 1, 1)
end
end

function mob27247_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27247', math.random(1500, 3000), 1)
end

function mob27247_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27247_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27247_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27247, 1, 'mob27247_Action')
RegisterUnitEvent(27247, 2, 'mob27247_Leave')
RegisterUnitEvent(27247, 3, 'mob27247_Kill')
RegisterUnitEvent(27247, 4, 'mob27247_Die')
